#include "includes.h"

volatile uint8_t  g_ble_rx_buf[128];
volatile uint32_t g_ble_rx_cnt=0;

void ble_init(u32 baud)
{
	usart4_init(baud);
	
	usart4_send_str("AT\r\n");
	delay_ms(100);
	
	usart4_send_str("AT+LADDR\r\n");
	delay_ms(100);		
	
	usart4_send_str("AT+NAMEZYH\r\n");
	delay_ms(100);

	usart4_send_str("AT+RESET\r\n");
	delay_ms(100);	

}
